{extend name="../back" /}
{block name="main"}
<div class="d-flex justify-content-start align-items-center mb-3">
  <div class="btn-group btn-group-sm me-4" role="group">
    <a class="btn btn-secondary" href="{:dcUrl('admin/orders/index')}"><i class="iconfont icon-list-alt mx-1"></i></a>
    <button type="button" class="btn btn-secondary dropdown-toggle" data-bs-toggle="dropdown"><i class="iconfont icon-filter"></i></button>
    <div class="dropdown-menu">
      <a class="dropdown-item" href="{:dcUrl('admin/orders/index',['status'=>1])}">未支付</a>
      <a class="dropdown-item" href="{:dcUrl('admin/orders/index',['status'=>2])}">已付款</a>
    </div>
  </div>
  <form action="{:dcUrl('admin/orders/index')}" method="get">
    <div class="input-group input-group-sm">
      <input  class="form-control" type="text" name="searchText" placeholder="订单号/流水号" autocomplete="off" required>
      <button class="btn btn-secondary" type="submit">搜索</button>
    </div>
  </form>
</div>
<table class="table table-striped table-bordered table-hover">
  <thead>
    <tr>
      <th>ID</th>
      <th>名称</th>
      <th>订单号</th>
      <th>流水号</th>
      <th>单价</th>
      <th>数量</th>
      <th>总价</th>   
      <th>状态</th>
      <th>客户端</th>
      <th>支付平台</th>
      <th>支付内容</th>
      <th>内容ID</th>
      <th>用户ID</th>
      <th>创建时间</th>
      <th>支付时间</th>
    </tr>
  </thead>
  <tbody>
    {volist name="list" id="item"}
    <tr>
      <td>{$item.pay_id}</td>
      <td>{$item.pay_name}</td>
      <td>{$item.pay_sign}</td>
      <td>{$item.pay_number|default='-'}</td>
      <td>{$item.pay_price}</td>
      <td>{$item.pay_quantity}</td>
      <td>{$item.pay_total_fee}</td>
      <td>{$item.pay_status}</td>
      <td>{$item.pay_scene}</td>
      <td>{$item.pay_platform}</td>
      <td>{$item.pay_model}</td>
      <td>{$item.pay_info_id}</td>
      <td>{$item.pay_user_id}</td>
      <td>{$item.pay_create_time|date='Y-m-d H:i:s'}</td>
      <td>{$item.pay_update_time|date='Y-m-d H:i:s'}</td>
    </tr>
  {/volist}
 </tbody>
</table>
{$pages|raw}
{/block}